<%-- 
    Document   : checkout
    Created on : Jul 4, 2013, 11:03:04 AM
    Author     : savan
--%>

<%@page import="beans.item"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body style="background-color: antiquewhite">
        <form action="ShowOrderAction.do" method="post">
            <center>
                <table align="center" style="background-color:rgba(50%,30%,20%,0.5);box-shadow:0px 0px 80px white;border-radius: 0% 20% 0% 20%;">
               
                    <%--<th colspan="2"><h2 style="color:brown;text-shadow:10px 10px 3px grey"></h2></th>--%>
                <thead style="color:brown;text-shadow:10px 10px 3px grey">your order is..
                <th>
                    Item id: &nbsp;  
                </th>
                <th>
                    Item name: &nbsp;
                </th>
                <th>
                    Item quantity: &nbsp;
                </th>
                <th>
                    Item price: &nbsp;
                </th>
                <th>
                    total: &nbsp;
                </th>
                <th>
                    Item sort description: &nbsp;
                </th>

                </thead>

                <c:forEach items="${sessionScope.cart}" var="item">
                    <tr>
                            <td>
                            <c:out value="${item.id}"></c:out>&nbsp;
                            </td>

                            <td>
                            <c:out value="${item.iname}"></c:out>&nbsp;
                            </td>

                            <td>
                            <c:out value="${item.iqty}"></c:out>&nbsp;
                            </td>

                            <td>
                            <c:out value="${item.iprice}"></c:out>&nbsp;
                            </td>
                             <td>
                                <c:out value="${(item.iprice)*(item.iqty)}"></c:out>&nbsp;
                            <td>
                            <c:out value="${item.isdesc}"></c:out>&nbsp; 
                            </td>

                        </tr>
                </c:forEach>

                
          </table>
                </center>
            <center>
             <table align="center" style="background-color:rgba(50%,30%,20%,0.5);box-shadow:0px 0px 80px white;border-radius: 0% 20% 0% 20%;">
               
        <th colspan="2"><h2 style="color:brown;text-shadow:10px 10px 3px grey"></h2></th>
                <tr> 
                    <td>
                        enter address: 
                    </td>
                    <td>
                        <textarea name="shipadd" rows="3" cols="30"></textarea>
                    </td>
                    <tr>
                    <td></td>
                    <td>
                        <input type="submit" value="confirm"style="font-family: fantasy;color: brown;background-color: antiquewhite"/>
                    </td>
                    </tr>
                </tr>
                </table>
                </center>
                <h3><c:out value="${sessionScope.msg}"></c:out></h3>
                     <c:remove var="msg" scope="session"></c:remove>
       </form>
    </body>
</html>
